package com.vincent.program;

public class PriceType {
	public static final String WEEKDAY = "Weekday";
	public static final String WEEKEND = "Weekend";
	public static final String REGULAR = "Regular";
	public static final String REWARDS = "Rewards";
	private String dayType;
	private String userType;

	public PriceType(String userType, String dayType) {
		super();
		this.dayType = dayType;
		this.userType = userType;
	}

	public String getDayType() {
		return dayType;
	}

	public void setDayType(String dayType) {
		this.dayType = dayType;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dayType == null) ? 0 : dayType.hashCode());
		result = prime * result
				+ ((userType == null) ? 0 : userType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PriceType other = (PriceType) obj;
		if (dayType == null) {
			if (other.dayType != null)
				return false;
		} else if (!dayType.equals(other.dayType))
			return false;
		if (userType == null) {
			if (other.userType != null)
				return false;
		} else if (!userType.equals(other.userType))
			return false;
		return true;
	}
}
